﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Web.Api.Server.ViewModels
{
    public class Pagination
    {
        public int Current { get; set; }

        public int PageSize { get; set; }

        public long Total { get; set; }
    }

    public class PageViewModel<T> where T : class
    {
        public Pagination Pagination { get; set; }

        public ICollection<T> Results { get; set; } = new List<T>();
    }
}
